<?php

namespace app\api\model;

use think\Model;

class ExaminationAnswer extends Model
{
    public static function countUserAnswer($userId)
    {
        return self::where('uid', $userId)
            ->where('is_right', 0)
            ->count();
    }
}